# user/urls.py
from django.urls import path, include

from rest_framework import routers
from rest_framework.routers import DefaultRouter

from crawler.views import CrawlerDataView,GetCityByCityOrYearView,GetCityDataByCityOrYearView, \
	WeatherStatusView, WindStatusView, DeleteCityView

app_name = 'crawler'

urlpatterns = [
	path('crawler_data', CrawlerDataView.as_view(),name='crawler_data'),
	path('weather_status', WeatherStatusView.as_view(),name='weather_status'),
	path('wind_status', WindStatusView.as_view(),name='wind_status'),
	path('delete_city', DeleteCityView.as_view(),name='delete_city'),
]
router = routers.SimpleRouter()
router.register(r'get_city_by_name_or_year', GetCityByCityOrYearView)
router.register(r'get_citydata_by_name_or_year', GetCityDataByCityOrYearView)
urlpatterns += router.urls